package com.le.tester.config;

import com.le.tester.component.JWTAuthHandlerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * createTime：2025-05-21 15:14
 * description：
 */
@Configuration
public class JWTAuthWebMvcConfigurer implements WebMvcConfigurer {

    @Autowired
    public JWTAuthHandlerInterceptor jwtAuthHandlerInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(jwtAuthHandlerInterceptor);
    }
}
